function status = check_globals

global g_survey_num;
global g_quant_num;
global g_delta_phi;
global g_max_radius;
global g_delta_r;

needed_quants = ceil(2*pi/g_delta_phi) * ...
 ceil(g_max_radius/g_delta_r);

debug_print(1, 'Число квантов %d\n', g_quant_num);
debug_print(1, 'Должное число квантов %d\n', needed_quants);
status = (g_quant_num == needed_quants);

end
